<?php
/*
Template Name: Tag_results
*/

ob_start("ob_gzhandler");

get_header();
?>

<div id="content" class="narrowcolumn">
<?php if (tag_results()): ?>

	<h2>Blog about: <?php current_tag();?></h2>
<div style="width:530px;">
<?php global $post; ?>
<?php foreach (tag_results() as $post): ?>
	<?php setup_postdata($post); ?>

<div id="latest" class="post" id="post-<?php the_ID(); ?>">
<?php
	$current_user_id = get_the_author_ID( );
	echo '<div style="float:right;">' .get_avatar( $current_user_id, get_the_author_email(), 16 ).'</div>';
	?>
      <h2><a rel="nofollow" href="<?php the_guid() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
	<div class="entry">
	<?php the_excerpt(); ?>

	<p>Tagged: <?php the_mutags();?><br />
	Posted <?php the_time('F jS, Y') ?> by <?php the_author() ?></p>
	</div>
<span style="1px solid #EAEAEA;margin-bottom:20px"></span>
     </div>
  <?php endforeach; ?>
</div>
  <?php else : ?>
<h2>Tags (BETA)</h2>
<div class="post entry" id="post">
<p>This is a peek into what people on Blogates.com are talking about this very instant. It only includes recent activity, so it should change quite a bit over time. Click on any word to see the most recent posts under each tag or category.</p>
<p style="line-height: 40px;text-align: justify;">
	<?php mu_tag_cloud() ?>
</p>
</div>
 <?php endif; ?>

</div>
<br /><br />
<?php get_sidebar(); ?>

<?php get_footer(); ?>